/**
 *!
 * \file        b_mod_led_screen.h
 * \version     v0.0.1
 * \date        2024/7/24
 * \author
 *******************************************************************************

 */
#ifndef __B_MOD_LED_SCREEN_H__
#define __B_MOD_LED_SCREEN_H__

#ifdef __cplusplus
extern "C" {
#endif

/*Includes ----------------------------------------------*/
#include "b_config.h"
/**
 * \addtogroup BABYOS
 * \{
 */

/**
 * \addtogroup MODULES
 * \{
 */

/**
 * \addtogroup BUTTON
 * \{
 */

/**
 * \defgroup BUTTON_Exported_TypesDefinitions
 * \{
 */

// typedef void (*pBtnEventHandler_t)(uint32_t dev_no, uint8_t sub_id, uint16_t event, uint8_t
// param);

typedef struct bLedScreenInstance
{
    uint32_t dev_no;
    uint16_t dis_buf_num;
    uint8_t  dis_buf_letter1;
    uint8_t  dis_buf_letter2;
    uint16_t icon;
    uint8_t  led_direction;
    uint8_t *map_smg_data;  // 映射数据
    uint8_t *map_letter_data;
    uint8_t  brigness;
} bLedScreenInstance_t;

/**
 * \}
 */

/**
 * \defgroup BUTTON_Exported_Defines
 * \{
 */
// 对外LED图标
#define LED_AUTO_MODE_ICON 0
#define LED_TEMP_UNIT_ICON 1
#define LED_CL_ICON 2
#define LED_HALF_NUM_ICON 3
#define LED_HOT_ICON 4
#define lED_DECIMAPOINT_ICON 5
#define LED_LOW_BATTERY_ICON 6

#define LED_TEMP_UNIT_ICON_R 8
#define LED_HALF_NUM_ICON_R 9
#define lED_DECIMAPOINT_ICON_R 10
#define LED_HOLIDAY_ICON 11
#define LED_ECO_ICON 12
#define LED_WIFI_ICON 13
#define LED_MANUAL_MODE_ICON 14

/**
 * \}
 */

/**
 * \defgroup BUTTON_Exported_Functions
 * \{
 */
 
int bLedScreenInit(uint32_t dev_no);
int bLedScreenShowNum(uint16_t num);
int bLedScreenShowLetter(char * letter);
/**
 * \}
 */

/**
 * \}
 */

/**
 * \}
 */

/**
 * \}
 */
#endif

#ifdef __cplusplus
}
#endif

/************************ Copyright (c) 2019 Bean *****END OF FILE****/
